home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
038a
/
satsfaxt.zip
/
CCPUTILS.EXE
/
HELP.C
< prev
next >
Wrap
Text File
|
1990-01-30
|
3KB
|
56 lines
/*===========================================================================*
* *
* HELP.C *
* *
*---------------------------------------------------------------------------*
* *
* This function prints a help message about the command that called it. *
* The information is defined in a help table in the calling application. *
* After displaying the information, the program exits without returning *
* to the caller. The exit code is 0 when returning thru the help function. *
* *
* The following source code is intended to assist developers in *
* creating applications which support the DCA/Intel Communicating *
* Applications Specification Version 1.0A. It is provided free of charge *
* and on an as-is basis. THE IMPLIED WARRENTIES OF MERCHANTABILITY AND *
* FITNESS FOR A PARTICULAR PURPOSE ARE SPECIFICALLY EXCLUDED. This source *
* code may be modified, enhanced, copied and distributed with applications *
* that support CAS on a royalty free basis. *
* *
*---------------------------------------------------------------------------*
* *
* HISTORY: *
* - completed 9/14/89. *
* *
*===========================================================================*/
#include <stdio.h>
#include <dos.h>
#include "cas.h"
#include "util.h"
/*---------------------------------------------------------------------------*
* CASHelp *
*---------------------------------------------------------------------------*
* CASHelp displays a description and the syntax of the calling utility, *
* as well as a list of command-line switches. *
*---------------------------------------------------------------------------*
* INPUT : description string, syntax string, the switch help table, and *
* its size. *
* OUTPUT: none *
*---------------------------------------------------------------------------*/
void CASHelp(char *DescTable[], int dSize, char *HelpTable[], int hSize)
{
int x;
for(x = 0; x < dSize; x++) {
fprintf(stdout, "%s", DescTable[x]);
}
for(x = 0; x < hSize; x++) {
fprintf(stdout, "%s", HelpTable[x]);
}
exit(0);
}